import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter/rendering.dart' show debugPaintSizeEnabled;

import 'pages/splash_screen.dart';
import 'pages/homepage.dart';

import 'pages/user_manager/list.dart';
import 'pages/user_manager/detail.dart';

import 'pages/risk_manager/list.dart';

import 'pages/device_manager/list.dart';


void main() {
  // debugPaintSizeEnabled = true;
  //隐藏状态栏
  SystemChrome.setEnabledSystemUIOverlays([]);
  //启动应用
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: SplashScreen(),
      //路由表
      routes: <String, WidgetBuilder>{
        '/splashscreen': (BuildContext context) => SplashScreen(),
        '/homepage': (BuildContext context) => new Homepage(),
        //会员管理
        '/user_manager/list': (BuildContext context) => new UserManagerList(),
        '/user_manager/detail': (BuildContext context) => new UserManagerDetail(),
        //风控管理
        '/risk_manager/list': (BuildContext context) => new RiskManagerList(),
        //设备管理
        '/device_manager/list': (BuildContext context) => new DeviceManagerList(),
      },
    );
  }
}
